/*
 * @Description: 
 * @Author: Aroma
 * @Date: 2024-09-20 08:43:45
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-20 10:05:12
 * @别瞎看: 你个无脑牛马
 */
public class Cat extends Animal{
    //成员属性
    private String type;

    public Cat(){

    }

    public Cat(String color,int age,String type){
        super(color,age);
        this.type=type;
    }
    @Override
    public void eat(){
        System.out.println("猫吃鱼");
    } 
    @Override
    public void sleep(){
        System.out.println("猫睡觉");
    }
    @Override
    public String toString(){
        String str0=super.toString();
        String str=",是🐱，品种是:"+this.type;
        return str0+str;
    }

}
